<html>
    <body>
        <script type="text/javascript">
            var patt1 = new RegExp("e");
            document.write(patt1.test("The best things in life are free"));
        </script>
    </body>
</html>